package com.sunmi.usercenter.bean.rpc;

import com.google.gson.Gson;

/**
 * 请求实体
 * 
 * @author longtao.li
 * 
 */
public class Req<T> {

	public Req(T params) {
		this.params = params;
		init();
	}

	public T params; // 请求携带的数据

	public String jsonParams = ""; // params的json字符串

	private void init() { 
		jsonParams = new Gson().toJson(params);
		jsonParams = jsonParams.replace(" ", "");
	}

}
